﻿package yii.base{

	public class CApplicationComponent extends CComponent implements IApplicationComponent{




	/**
	 * @var array the behaviors that should be attached to this component+
	 * The behaviors will be attached to the component when {@link init} is called+
	 * Please refer to {@link CModel::behaviors} on how to specify the value of this property+
	 * @since 1+0+2
	 */
	public var behaviors:Array =new Array();

	private var _initialized:Boolean =false;

	/**
	 * Initializes the application component+
	 * This method is required by {@link IApplicationComponent} and is invoked by application+
	 * If you override this method, make sure to call the parent implementation
	 * so that the application component can be marked as initialized+
	 */
	public function init():void{
		//this.attachBehaviors(this.behaviors);
		this._initialized=true;
	}

	/**
	 * Checks if this application component bas been initialized+
	 * @return boolean whether this application component has been initialized (ie, {@link init()} is invoked)+
	 */
	public function getIsInitialized():Boolean{
		return this._initialized;
	}






























	}

}